home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / onlineco / files / ImageMagick-6.0.1-Q16-windows-dll.exe / {app} / include / magick / magick.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-04-13  |  2.1 KB  |  99 lines

  1. /*
  2.   ImageMagick Application Programming Interface declarations.
  3. */
  4. #ifndef _MAGICK_MAGICK_H
  5. #define _MAGICK_MAGICK_H
  6.  
  7. #if defined(__cplusplus) || defined(c_plusplus)
  8. extern "C" {
  9. #endif
  10.  
  11. typedef Image
  12.   *(DecoderHandler)(const ImageInfo *,ExceptionInfo *);
  13.                                                                                 
  14. typedef unsigned int
  15.   (EncoderHandler)(const ImageInfo *,Image *);
  16.  
  17. typedef unsigned int
  18.   (MagickHandler)(const unsigned char *,const size_t);
  19.  
  20. typedef struct _MagickInfo
  21. {
  22.   char
  23.     *name,
  24.     *description,
  25.     *version,
  26.     *note,
  27.     *module;
  28.  
  29.   ImageInfo
  30.     *image_info;
  31.  
  32.   DecoderHandler
  33.     *decoder;
  34.  
  35.   EncoderHandler
  36.     *encoder;
  37.  
  38.   MagickHandler
  39.     *magick;
  40.  
  41.   void
  42.     *client_data;
  43.  
  44.   unsigned int
  45.     adjoin,
  46.     raw,
  47.     seekable_stream,
  48.     blob_support,
  49.     thread_support,
  50.     stealth;
  51.  
  52.   struct _MagickInfo
  53.     *previous,
  54.     *next;  /* deprecated, use GetMagickInfoList() */
  55.  
  56.   unsigned long
  57.     signature;
  58. } MagickInfo;
  59.  
  60. extern MagickExport char
  61.   **GetMagickList(const char *,unsigned long *),
  62.   *MagickToMime(const char *);
  63.  
  64. extern MagickExport const char
  65.   *GetImageMagick(const unsigned char *,const size_t),
  66.   *GetMagickDescription(const MagickInfo *);
  67.  
  68. extern MagickExport DecoderHandler
  69.   *GetMagickDecoder(const MagickInfo *);
  70.  
  71. extern MagickExport EncoderHandler
  72.   *GetMagickEncoder(const MagickInfo *);
  73.  
  74. extern const MagickExport MagickInfo
  75.   *GetMagickInfo(const char *,ExceptionInfo *),
  76.   **GetMagickInfoList(const char *,unsigned long *);
  77.  
  78. extern MagickExport MagickInfo
  79.   *RegisterMagickInfo(MagickInfo *),
  80.   *SetMagickInfo(const char *);
  81.  
  82. extern MagickExport unsigned int
  83.   GetMagickAdjoin(const MagickInfo *),
  84.   GetMagickBlobSupport(const MagickInfo *),
  85.   GetMagickSeekableStream(const MagickInfo *),
  86.   GetMagickThreadSupport(const MagickInfo *),
  87.   UnregisterMagickInfo(const char *);
  88.  
  89. extern MagickExport void
  90.   DestroyMagick(void),
  91.   DestroyMagickList(void),
  92.   InitializeMagick(const char *);
  93.  
  94. #if defined(__cplusplus) || defined(c_plusplus)
  95. }
  96. #endif
  97.  
  98. #endif
  99.